﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApplication1
{
    public partial class MoreNews : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["TagName"] == null)
                Response.Redirect("~/Search.aspx");

            if (!IsPostBack)
            {
                InitPanelSourceDownload();
            }
        }
        private void InitPanelSourceDownload()
        {
            DataTable dt = new DataTable();
            string TagName = Request.QueryString["TagName"];
            SQLHelper.getNewsBelongTagName(out dt, TagName);
            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
    }

}